package com.mall.search.vo;

import com.mall.common.dto.SkuEsModel;
import lombok.Data;

import java.util.List;

/**
 * @author: 谢君臣
 * @Date: 2022/8/2-20:24
 * @version: 1.0
 * @function:
 */
@Data
public class SearchResult {
    // 商品数据
    private List<SkuEsModel> product;
    /*
    * 分页数据
     */
    private Integer page;
    private Long total;
    private Integer totalPage;

    // 当前查询所涉及的品牌
    private List<BrandVo> brandVos;
    // 当前查询所涉及的属性
    private List<AttrVo> attrVos;
    // 分类的id
    private List<CatalogVo> catalogVos;

    /* 面包屑导航数据 */
    private List<NavVo> navs;

    @Data
    public static class NavVo {
        private String navName;
        private String navValue;
        private String link;
    }


    @Data
    public static class BrandVo{
        private Long brandId;
        private String brandName;
        private String brandImg;
    }

    @Data
    public static class AttrVo{
        private Long attrId;
        private String attrName;
        private List<String> attrValues;
    }
    @Data
    public static class CatalogVo{
        private Long catalogId;
        private String catalogName;
    }
}
